cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDART 17)

# set project name
project(freeda VERSION 0.0.1)

# set project sources
set(PROJECT_SOURCES
    src/freeda.cpp

    src/file.cpp
    src/dir.cpp
    src/utils.cpp
    src/ui/mainwindow.cpp

    include/dir.h
    include/file.h
    include/utils.h
    include/entity.h
    include/freeda.h
    include/ui/mainwindow.h

    include/cmd.h

	libs/libfm.h
)

# add executable
add_executable(freeda ${PROJECT_SOURCES})

set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)

include_directories(${CURSES_INCLUDE_DIR})

target_link_libraries(freeda ${CURSES_LIBRARIES})

target_include_directories(freeda PUBLIC
                           "${PROJECT_BINARY_DIR}"
                           )
